import request from '@/utils/request'

// 查询借出列表
export function listOutRyDepotItem(query) {
  return request({
    url: '/warehouse/OutRyDepotItem/list',
    method: 'get',
    params: query
  })
}

// 查询借出详细
export function getOutRyDepotItem(id) {
  return request({
    url: '/warehouse/OutRyDepotItem/' + id,
    method: 'get'
  })
}

// 新增借出
export function addOutRyDepotItem(data) {
  return request({
    url: '/warehouse/OutRyDepotItem',
    method: 'post',
    data: data
  })
}

// 修改借出
export function updateOutRyDepotItem(data) {
  return request({
    url: '/warehouse/OutRyDepotItem',
    method: 'put',
    data: data
  })
}

// 删除借出
export function delOutRyDepotItem(id) {
  return request({
    url: '/warehouse/OutRyDepotItem/' + id,
    method: 'delete'
  })
}
